<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="js/jquery1.7.js"></script>
    <title>Document</title>
    <style>
         * {
            margin: 0;
            padding: 0;
        }
        .container{
            width:988px;
            height:405px;
            overflow: hidden;
          margin: 50px auto;
        }
        ul{
            list-style: none;
        }
        ul li{
            float: left;
            width:75px;
            height:405px;
        }
        .active{
            width:538px;
            height:405px;

        }
    </style>
</head>
<body>
    <div class="container">
        <ul>
            <li class="active"><img src="./images/1.jpg"></li>
            <li><img src="./images/2.jpg"></li>
            <li><img src="./images/3.jpg"></li>
            <li><img src="./images/4.jpg"></li>
            <li><img src="./images/5.jpg"></li>
            <li><img src="./images/6.jpg"></li>
            <li><img src="./images/7.jpg"></li>
        </ul>
    </div>
    <script>
    $(".container ul li").mouseover(function(){
        // stop清空队列
       $(this).stop(true).animate({width:538},800).siblings().stop(true).animate({width:75},800);

    })
    </script>
</body>
</html>